<template>
  <div>
    <Select :options="options" v-bind="$attrs" v-on="$listeners" />
  </div>
</template>
<script>
import { getUsers } from '@/api/user'
import Select from '@/components/Select'
export default {
  components: {
    Select
  },
  data() {
    return {
      options: []
    }
  },
  mounted() {
    this.getUsers()
  },
  methods: {
    getUsers() {
      getUsers().then((res) => {
        this.options = [
          {
            value: 'a',
            label: '阿里巴巴'
          },
          {
            value: 'b',
            label: '腾讯'
          }
        ]
      })
    }
  }
}
</script>
